package com.whminwei.edu.api.dc.client;

import com.whminwei.common.exception.ServiceException;
import com.whminwei.common.feign.decoder.FullHttpRspnConfig;
import com.whminwei.common.http.rspn.FullHttpResponse;
import com.whminwei.edu.api.dc.dto.fspn.school.DcExtTrainBaseFspn;
import com.whminwei.edu.api.dc.dto.fspn.school.DcIntlTrainBaseFspn;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 *@author wangy
 *@since 2024/7/25
 */
@FeignClient(name = "xzzg-pt-school-service", contextId = "datacenter-train", configuration = FullHttpRspnConfig.class)
public interface DcSchoolTrainBaseClient {
    /**
     * 获取校外实训基地列表
     *
     * @return com.whminwei.common.http.rspn.FullHttpResponse<com.whminwei.edu.api.school.dto.fspn.DcExtTrainBaseFspn>
     * @author zhangjq
     * @since 2024-05-17
     */
    @PostMapping("/datacenter/getExtTrainBaseList")
    FullHttpResponse<DcExtTrainBaseFspn> getExtTrainBaseList() throws ServiceException;

    /**
     * 获取校内实训基地列表
     *
     * @return com.whminwei.common.http.rspn.FullHttpResponse<com.whminwei.edu.api.school.dto.fspn.DcIntlTrainBaseFspn>
     * @author zhangjq
     * @since 2024-05-18
     */
    @PostMapping("/datacenter/getIntlTrainBaseList")
    FullHttpResponse<DcIntlTrainBaseFspn> getIntlTrainBaseList() throws ServiceException;
}
